import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Home from '@/components/Home'
import Detail from '@/components/Detail'
import Connect from '@/components/Connect'
import NewOrder from '@/components/NewOrder.vue'
import OrderList from '@/components/OrderList.vue'
import OrderDetail from '@/components/OrderDetail.vue'
import UserInfo from '@/components/UserInfo.vue'
import EditUserInfo from '@/components/EditUserInfo.vue'

Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home
    },
    {
      path: '/detail',
      name: 'Detail',
      component: Detail
    },
    {
      path: '/connect',
      name: 'Connect',
      component: Connect
    },
    {
      path: '/helloworld',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/neworder',
      name: 'NewOrder',
      component: NewOrder
    },
    /* {
      path: '/newconsignee',
      name: 'NewConsignee',
      component: NewConsignee
    },
    {
      path: '/consigneelist',
      name: 'ConsigneeList',
      component: ConsigneeList
    }, */
    {
      path: '/orderlist',
      name: 'OrderList',
      component: OrderList
    },
    {
      path: '/orderdetail',
      name: 'OrderDetail',
      component: OrderDetail
    },
    {
      path: '/userinfo',
      name: 'UserInfo',
      component: UserInfo
    },
    {
      path: '/edituserinfo',
      name: 'EditUserInfo',
      component: EditUserInfo
    }
  ]
})
